package org.wangblue.concrete_builder;

import org.wangblue.builder.Builder;
import org.wangblue.product.Product;

/**
 * @Description: 具体的建造者模式2
 * @Author: WangBlue
 * @Create: 2024-09-06 09:21
 * @Version: 1.0
 **/

public class ConcreteBuilder2 extends Builder {

    private Product product = new Product();
    @Override
    public void buildPartA() {
        System.out.println("部件X");
    }

    @Override
    public void buildPartB() {
        System.out.println("部件Y");

    }

    @Override
    public Product getResult() {
        return product;
    }
}
